import React, {Component} from 'react'
import {View, Text, ActivityIndicator, StyleSheet} from 'react-native'

class Loading extends Component {
  render() {
    return (
      <View style={[styles.centering, {height: 80}]}>
        <ActivityIndicator
          animating={true}
          size="large"
        />
        <Text>正在加载数据...</Text>
      </View>
    )
  }
}

const styles = StyleSheet.create({
  centering: {
    alignItems: 'center',
    justifyContent: 'center',
    padding: 8,
  }
});

export default Loading